﻿<UserControl xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"  x:Class="TelecoSystems.Modules.Dashboard.Views.DashboardView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:chart="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="800">

    <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <controlsToolkit:WrapPanel>
                <chart:Chart Width="380" Height="300" Margin="10" Title="Contracts over Products" LegendTitle="Legend">
                    <chart:Chart.Background>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" >
                            <GradientStop Color="#FFE8E8E8" Offset="0"/>
                            <GradientStop Color="White" Offset="1"/>
                        </LinearGradientBrush>
                    </chart:Chart.Background>
                    <chart:PieSeries AnimationSequence="FirstToLast" ItemsSource="{Binding ChartPointsCOP}" DependentValueBinding="{Binding Value}" IndependentValueBinding="{Binding Label}" IsSelectionEnabled="False" Title="Products">                        
                    </chart:PieSeries>
                </chart:Chart>
                <chart:Chart Width="380" Height="300" Margin="10" Title="Customers locations" LegendTitle="Legend">
                    <chart:Chart.Background>
                        <SolidColorBrush Color="#FFF8F8F8" />
                    </chart:Chart.Background>
                        <chart:ColumnSeries AnimationSequence="FirstToLast" ItemsSource="{Binding ChartPointsCL}" DependentValueBinding="{Binding IntValue}" IndependentValueBinding="{Binding Label}" IsSelectionEnabled="True" Title="Locations">
                    </chart:ColumnSeries>
                </chart:Chart>
            </controlsToolkit:WrapPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
